package com.mcxx.service;

import com.yinhai.ta404.core.restservice.BaseRestService;
import com.yinhai.ta404.core.restservice.resultbean.ResultBean;


public class DefaultRestService extends BaseRestService {
    public void setData(Object data) {
        ResultBean resultBean = this.result();
        resultBean.addField("data", data);
    }

    public void setSuccess() {
        super.setSuccess(true);
        super.setData("msg", "OK");
    }
}
